import request from '@/utils/request'

// 查询小程序角色列表
export function listXcxrole(query) {
  return request({
    url: '/system/xcxrole/list',
    method: 'get',
    params: query
  })
}

// 查询小程序角色详细
export function getXcxrole(xcxRoleId) {
  return request({
    url: '/system/xcxrole/' + xcxRoleId,
    method: 'get'
  })
}

// 新增小程序角色
export function addXcxrole(data) {
  return request({
    url: '/system/xcxrole',
    method: 'post',
    data: data
  })
}

// 修改小程序角色
export function updateXcxrole(data) {
  return request({
    url: '/system/xcxrole',
    method: 'put',
    data: data
  })
}

// 删除小程序角色
export function delXcxrole(xcxRoleId) {
  return request({
    url: '/system/xcxrole/' + xcxRoleId,
    method: 'delete'
  })
}
